﻿@model IEnumerable<VideoCache.Server.Model.OrderInfo>
@{
    ViewBag.Title = "订单管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<h2 class="pageTitle">@ViewBag.Title</h2>
<div class="wrap">
<table class="ten-table" width="100%">
<thead>
    <tr>
        <th style="width: 10px"><input type="checkbox" /></th>
        <th style="width: 50px; text-align: center">编号</th>
        <th>产品编号</th>
        <th>单价</th>
        <th>订购数量</th>
        <th>总计</th>
        <th>用户</th>
        <th>订单状态</th>
        <th>订单创建时间</th>
        <th>修改时间</th>
        <th></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ProductId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UnitPrice)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Quantity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalPrice)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UseId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ModifyTime)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
            @Html.ActionLink("Details", "Details", new { id = item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.Id })
        </td>
    </tr>
}
</tbody>
</table>
<div class="ten-pager">
@Html.Pager("page", (int)ViewBag.PageSize, (int)ViewBag.RecordCount)
</div>
</div> 